package com.knight.service.impl;

import com.knight.model.Order;
import com.knight.service.OrderService;
import com.knight.spring.RpcService;

@RpcService(value = OrderService.class)
public class OrderServiceImpl implements OrderService {

    @Override
    public Order getOrder(String id) {
        System.out.println("接受到客户的id: "+id);
        return new Order("345","服务端返回订单");
    }

    @Override
    public void saveOrder(Order order) {
        System.out.println("接受到客户的order: "+order);
    }
}
